<?php
if(isset($_COOKIE['sesion_administrativo']) && isset($_COOKIE['permisos_sesion'])){
require_once("../Connections/conec.php");
require_once("../Mantenciones/funcionesExamenesAlumnos.php");
require_once("../Mantenciones/funcionesRegistrosAlumnos.php");
$alumno = ObtenerRegistroAlumno($_GET['rutalumno']);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Facultad de Derecho - Universidad Diego Portales</title>
	<link href="/udp/css/StyleUdpFD.css" rel="stylesheet" type="text/css" />
    <link href="/udp/css/calendario.css" type="text/css" rel="stylesheet">
	<link href="/udp/css/style.css" rel="stylesheet" type="text/css" />
	<link href="/udp/css/menu_desplegable.css" rel="stylesheet" type="text/css" />
	
	<!-- CSS -->
<link rel="stylesheet" href="/udp/css/default.css" media="screen,projection" type="text/css" />
<link rel="stylesheet" href="/udp/css/lightbox.css" media="screen,projection" type="text/css" />

<!-- JavaScript -->
<script type="text/javascript" src="/udp/scripts/prototype.js"></script>
<script type="text/javascript" src="/udp/scripts/lightbox.js"></script>


		<script src="/udp/js/calendar.js" type="text/javascript"></script>
		<script src="/udp/js/calendar-es.js" type="text/javascript"></script>
		<script src="/udp/js/calendar-setup.js" type="text/javascript"></script>
		
		<script language="JavaScript" type="text/javascript" src='/udp/AjaxLib/ajax_reg_e_habilitante_validar_rut.js'></script>
		<script language="JavaScript" type="text/javascript" src='/udp/AjaxLib/ajax_reg_e_habilitante_validar_examenes_habilitante.js'></script>
<!--		<script language="JavaScript" type="text/javascript" src='/udp/AjaxLib/ajax_insertar_registro_alumno.js'></script>-->
		<script language="JavaScript" type="text/javascript" src='/udp/js/validaciones.js'></script>
		<script language="JavaScript" type="text/javascript" src='/udp/js/calendario.js'></script>
		<script language="JavaScript" type="text/javascript" src='/udp/js/validacion_registro_alumnos.js'></script>		
		<script language="JavaScript" type="text/javascript" src='/udp/js/consulta_examenes_alumnos.js'></script>
		<script language="JavaScript" type="text/javascript" src='/udp/js/funciones_grafico.js'></script>
</head>
<body>
				<div class="titulo_examen">Registro de Examen Tradicional</div>
  				<div id="mensaje_registro_fallo" class="mensaje_registro_fallo" onClick="ocultarRegistroFallo()"> </div>
				<div id="mensaje_registro_ok" class="mensaje_registro_ok"> </div>
				<div class="formulario_registro_examen">
				<form id="formexamentradicional" name="formexamentradicional" method="post" action="/udp/Registros/InsertarRegistroExamenTradicional.php">
            	  <table width="100%" align="center">
                    <tr>
                      <td height="30" colspan="2" align="center" bgcolor="#92a9ac" class="gr"><font color="#FFFFFF">Alumno(a) :<?php echo "<div>".$alumno[4]." ".$alumno[2]." ".$alumno[3]."</div>";?></font></td>
                    </tr>
                    <tr>
                      <td width="175" height="20" align="left" bgcolor="#DDDDDD" class="gr">&nbsp; Rut</td>
                    <td align="left" bgcolor="#DDDDDD"><a title="Consulta">
                		<?php
						if(isset($_GET['rutalumno']) && isset($_GET['dv'])){
							echo "<div id='txt_rut' class='txt_rut'>".$_GET['rutalumno']."-".$_GET['dv']."</div>";
							echo "<input type='hidden' name='txtrut' value='".$_GET['rutalumno']."-".$_GET['dv']."'>";
							echo "<input type='hidden' name='urlback' value='".$_COOKIE['urlback']."'>";
						}
						?>
					
					</td>
                    </tr>
                    <tr>
                      <td height="20" bgcolor="#DDDDDD" class="gr" align="left">&nbsp; Promedio Carrera </td>
                      <td align="left" bgcolor="#DDDDDD" class="gr">
                      <!--	<input name="txtpromediocarrera" type="text" id="txtpromediocarrera" size="15" maxlength="3" onKeyDown="validarPromedioCarrera();PromedioNotaGrado()" onKeyUp="validarPromedioCarrera();PromedioNotaGrado()"/>-->
						&nbsp;<?php echo $alumno[7];?>
						<input type="hidden" name="txtpromediocarrera" value="<?php echo $alumno[7];?>">
					  	<div id='mensaje_promedio_carrera' class='mensaje_validacion'> </div>
						<span class="gr">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;60%</span>
					  </td>
                    </tr>
                    <tr>
                      <td bgcolor="#DDDDDD" height="20" align="left"><span class="gr">&nbsp;&nbsp;Grado </span></td>
                      <td align="left" bgcolor="#DDDDDD">
                      <input name="txtnotagrado" type="text" id="txtnotagrado" size="8" maxlength="3" onKeyDown="validarNotaGrado();PromedioNotaGrado()" onKeyUp="validarNotaGrado();PromedioNotaGrado()" />
					  <div id='mensaje_nota_grado' class='mensaje_validacion'> </div>
                      <span class="gr">40%</span>
					  </td>
                    </tr>
                    <tr>
                      <td bgcolor="#DDDDDD" height="20" align="left"><span class="gr">&nbsp;&nbsp;Promedio Nota Grado</span></td>
                      <td align="left" bgcolor="#DDDDDD">
					  		<div id='mensaje_validacion_promedio_nota_grado' class="mensaje_validacion_nota_graduacion"> </div>
							<input type="hidden" name="promedionotagrado">
<!--	                    <input name="txtpromediofinal" type="text" id="txtpromediofinal" size="15"" maxlength="30"/>
						  <div id='mensaje_promedio_final'> </div>-->
					  </td>
                    </tr>
                    <tr>
						<td bgcolor="#DDDDDD" height="20" align="left" valign="top">
							<div id='texto_motivo_porque_lo_reprobo'><span class="gr"> &nbsp;&nbsp;Motivo por el cual reprobo </span></div>
						</td>
						<td align="left" bgcolor="#DDDDDD" height="50">
							<div id='motivo_porque_lo_reprobo'> <textarea name="porque_lo_reprobo" class="gr" cols="35" rows="1"> </textarea> </div>
						</td>
					
					</tr>
                    <tr>
                      <td bgcolor="#DDDDDD" height="20" align="left"><span class="gr">&nbsp; Fecha de Examen</span></td>
                      <td align="left" bgcolor="#DDDDDD">
                      <input name="txtfexamen" type="text" id="txtfexamen" value="<?php echo Date('d-m-Y')?>" size="15" maxlength="10" />
					</td>
                    </tr>
                    <tr>
                      <td height="20" colspan="2" align="left" bgcolor="#DDDDDD"><div align="center">
                        <input class="boton" name="btnguardar" type="button" id="btnguardar" value="Guardar" onclick= "ValidarFormExamenTradicional()" title="Guardar Examen Tradicional..." />
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<a href='#' class="lbAction" rel="deactivate"><button class="boton">Cancelar</button>
						<!--<input type="button" name="cancelar" value="Cancelar" class="boton" onClick="window.close()">-->
                      </div></td>
                    </tr>
                  </table>
                  </form>
				  </div>
<script>
ocultarPorqueReprobo();
ocultarRegistroFallo();
</script>
           	    
</body>
</html>
<?php
}//fin if session
?>